Repository navigation
PNE-9649: Bump gemd to 3.1.0 and stop serializing allowed_names - #1078
Conversation
gemd 3.1.0 discards ProcessTemplate.allowed_names and leaves it out of the JSON. Drop the field declaration so a Citrine ProcessTemplate dumps the same JSON as its gemd counterpart. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
| @@ -1 +1 @@ | |||
| __version__ = "5.4.0" | |||
| __version__ = "5.4.1" | |||
There was a problem hiding this comment.
Non-blocking, but on the version: I think this one should be 5.5.0 rather than 5.4.1. CONTRIBUTING.md asks for semver, and semver says a minor bump is required when public API is marked deprecated. This PR does that: the allowed_names argument on ProcessTemplate still works, but its value is now discarded with a deprecation warning. It also raises the gemd floor to >=3.1, which changes what installs alongside citrine.
We've bumped minor for both before: "Require gemd>=3,<4" went 5.0.4 → 5.1.0, and "Deprecate experimental result data sources" (#1052) went 4.0.3 → 4.1.0.
I get the case for a patch, since this also fixes the template mismatch for anyone already on gemd 3.1, but a minor release covers that fix too. It's your call either way.
pacdaemon
left a comment
There was a problem hiding this comment.
Thank you for addressing the nit!
Citrine Python PR
Description
This PR pins gemd 3.1.0 and stops serializing
allowed_namesonProcessTemplate.gemd 3.1.0 deprecates
ProcessTemplate.allowed_names. It discards the value and leaves the key out of the JSON. Citrine Python declaresallowed_namesas a serialized field, so against gemd 3.1.0 a CitrineProcessTemplatedumps"allowed_names": []and does not equal its gemd counterpart. Onmain, that mismatch breaks six unit tests against gemd 3.1.0. This PR removes the field declaration, so the two dumps match.ProcessTemplatekeeps itsallowed_namesconstructor argument. Callers who pass it get the deprecation warning from gemd, and gemd discards the value. The Citrine Platform ignores the field. PNE-9649 tracks its removal, and #1076 removes the argument.The dependency floor moves to
gemd>=3.1,<4, because gemd 3.0 writes the key, and its templates would not equal Citrine ones.The unit suite passes at 100% coverage against the gemd
v3.1.0source, and flake8 passes. I did not run the suite against gemd 3.0.PR Type:
Adherence to team decisions
🤖 Generated with Claude Code